package hnx.ca.util;

public class ErrorMessages {
	
	public interface SIGN_XML{
		public final String SUCCESS = "Sign xml file sucessfully!";
		public final String FAIL = "Sign xml file fail!";
		public final String IllegalAccessException = "Sign fail, reason: IllegalAccessException";
		public final String ClassNotFoundException = "Sign fail, reason: ClassNotFoundException";
		public final String IOException = "Sign fail, reason: IOException";
		public final String XMLSignatureException = "Sign fail, reason: XMLSignatureException";
		public final String KeyException = "Sign fail, reason: KeyException";
		public final String OTHER_EXCEPTION = "Sign fail, reason: OTHER_EXCEPTION";
		public final String INVALID_FILE_TYPE = "File is not supported!";
	}
	
	public interface VERIFY_XML{
		public final String VALID_SIGNATURE = "File is valid!";
		public final String NO_SIGNATURE_FOUND = "Cannot find Signature Element!";
		public final String SIGNATURE_VERIFY_FAIL = "Verify fail!";
		public final String OTHER_EXCEPTION = "Verify fail, reason: OTHER_EXCEPTION";
		public final String FILE_NOT_FOUND = "File not found exception!";
		public final String CA_NOT_SUPPORT = "Certificate not support!";
		public final String CHECK_CRL_FAIL = "Verify fail, reason: Check CRL FAIL";
	}
	
	public interface VERIFY_STRING{
		public final String VALID_SIGNATURE = "Input String is valid!";
		public final String INVALID_SIGNATURE = "Verify fail!";
		public final String CA_NOT_SUPPORT = "CA not support!";
		public final String OTHER_EXCEPTION = "Verify fail, reason: OTHER_EXCEPTION";
		public final String CERTIFICATE_EXCEPTION = "Verify fail, reason: CERTIFICATE_EXCEPTION";
		public final String IO_EXCEPTION = "File not found exception!";
		public final String CHECK_CRL_FAIL = "Verify fail, reason: Check CRL FAIL";
		public final String INVALID_CUSTOMER = "Customer is invalid, please check customerId again!";
		
	}
}
